PowerTCP Mail for .NET
Write(Byte[],Int32,Int32) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > MessagePartStream Class > Write Method : Write(Byte[],Int32,Int32) Method




buffer
Contains the data to be written.
offset
The zero-based position in the buffer from which to begin writing from.
count
The number of bytes to write.
Writes a sequence of bytes to the Stream and returns when the operation is complete.

Syntax

Visual Basic (Declaration) 
Public Overloads Overrides Sub Write( _
   ByVal buffer() As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As MessagePartStream
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
 
instance.Write(buffer, offset, count)
C# 
public override void Write( 
   byte[] buffer,
   int offset,
   int count
)
Managed Extensions for C++ 
public: void Write( 
   byte[]* buffer,
   int offset,
   int count
) override 
C++/CLI 
public:
void Write( 
   array<byte>^ buffer,
   int offset,
   int count
) override 

Parameters

buffer
Contains the data to be written.
offset
The zero-based position in the buffer from which to begin writing from.
count
The number of bytes to write.

Exceptions

ExceptionDescription
System.IO.IOExceptionThrown when the Stream is not writable.
System.ArgumentNullExceptionThrown when the buffer is null.
System.ArgumentOutOfRangeExceptionThrown when the offset is less than zero or when count is less than or equal to zero.
System.ArgumentExceptionThrown when the (offset + count) > buffer.Length.

Remarks

This method copies bytes contained in buffer to the Stream, starting from the position specified by offset and writing the number of bytes specified by count.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.